package com.triplelink.factory.entity;

import resource.UrisInstances;

import com.triplelink.entity.sibling.HouseEntity;
import com.triplelink.entity.sibling.SiblingEntity;

public class SiblingFactory
{
	public static SiblingEntity createOnlyChildOwnerOfHouse()
	{
		SiblingEntity person = new SiblingEntity();
		
		person.setId(UrisInstances.ONLY_CHILD);
		person.setName("Sozildo");
		
		HouseEntity house = HouseFactory.createFarFromOthers();
		
		person.setLivesIn(house);
		
		house.setOwner(person);
		house.getResidentes().add(person);
		
		return person;
	}
	
	public static SiblingEntity createHasBrotherAndNoHouse()
	{
		SiblingEntity b1 = new SiblingEntity();
		
		b1.setId(UrisInstances.NO_HOUSE_1);
		b1.setName("No House 1");

		SiblingEntity b2 = new SiblingEntity();
		
		b2.setId(UrisInstances.NO_HOUSE_2);
		b2.setName("No House 2");
		
		b2.getSiblings().add(b1);
		b1.getSiblings().add(b2);
		
		return b1;
	}
}